package com.example.designpatterns.creational.simplefactory;

import com.example.designpatterns.creational.simplefactory.product.CircleShape;
import com.example.designpatterns.creational.simplefactory.product.IShape;
import com.example.designpatterns.creational.simplefactory.product.RectShape;

/**
 * 客户端代码（具体使用）
 * @author scott
 */
public class Client {

    public static void main(String[] args) {
        IShape javaCourse = ShapeFactory.create(CircleShape.class);
        javaCourse.draw();

        IShape pythonCourse = ShapeFactory.create(RectShape.class);
        pythonCourse.draw();
    }

}
